package niit.game;

import android.graphics.Bitmap;
import android.graphics.Canvas;

public class BulletEne extends Bullet{
	int x;
	int y;
	int xSpeed;
	int ySpeed;
	GameView gameView;
	MyPlane myPlane;
	Bitmap typeBullet;
	//int direct;
	int damge;
	public BulletEne(GameView gameView, Bitmap bmp, int x, int y, int xSpeed,
			int ySpeed, int damge, int direct) {
		super(gameView, bmp, x, y, xSpeed, ySpeed, damge, direct);
		this.gameView = gameView;
		this.typeBullet = bmp;
		this.x = x;
		this.y = y;
		this.ySpeed = ySpeed;
		this.xSpeed = xSpeed;
		//this.direct = direct;
		this.damge = damge;
		
	}
	private void update() {
		y -= ySpeed;

	}
	public void onDraw(Canvas canvas) {
		update();
		canvas.drawBitmap(typeBullet, x, y, null);
	}

}
